package com.allwayz.controller;

import com.allwayz.service.MessageProvider;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author allwayz
 */
@RestController
@RequestMapping("message")
@Slf4j
public class SendController {
    @Resource
    private MessageProvider messageProvider;

    @GetMapping()
    public String sendMessage(){
        return messageProvider.send();
    }
}
